package com.health.personal.controller;


import com.health.common.core.domain.R;
import com.health.personal.domain.vo.PositionVo;
import com.health.personal.service.IPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 医生职位表 前端控制器
 * </p>
 *
 * @author zzs
 * @since 2024-12-14
 */
@RestController
@RequestMapping("/position")
public class PositionController {


    @Autowired
    private IPositionService service;

    /**
     * 医生职位下拉框
     * @return
     */
    @GetMapping("/list")
    public R<List<PositionVo>> list(){
        List<PositionVo> list = service.list();
        return R.ok(list);
    }


}
